{extend name="base/common"}

{block name="style"}

{/block}

{block name="page-header"}

{/block}

{block name="main"}
<div class="wrapper wrapper-content animated fadeInRight">
    <div class="row">
        <div class="col-lg-12">
            <div class="mail-box-header">
                <h2>请假管理 / 假别管理</h2>
                <div class="mail-tools tooltip-demo m-t-md">
                    <a href="{:Url('Leave/leave_config_add')}" class="btn btn-primary btn-sm" ><i class="fa fa-plus"></i> 添加</a>
                    <form method="get" action="" class="pull-right mail-search">
                        <div class="input-group">
                            <input type="text" class="form-control input-sm" name="search" placeholder="搜索名称">
                            <div class="input-group-btn">
                                <button type="submit" class="btn btn-sm btn-primary"><i class="fa fa-search"></i> 搜索</button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
            <div class="mail-box">
                <table class="table table-hover table-mail">
                    <thead>
                    <tr>
                        <th></th>
                        <th>假别ID</th>
                        <th>假别名称</th>
                        <th>假别总天数</th>
                        <th>是否开启总天数限制</th>
                        <th>创建时间</th>
                        <th>状态</th>
                        <th>操作</th>
                    </tr>
                    </thead>

                    <tbody>
                    {volist name="list" id="vo"}
                    <tr>
                        <th></th>
                        <td>{$vo.id}</td>
                        <td>{$vo.name}</td>
                        <td>{$vo.total_days}</td>
                        <td>{eq name="vo.is_show_total_days" value="1"}是{else/}否{/eq}</td>
                        <td>{$vo.create_time}</td>
                        <td>{eq name="vo.status" value="1"}正常{else/}作废{/eq}</td>
                        <td>
                            <a href="{:Url('Leave/leave_config_edit?id='.$vo['id'])}" class="confirm btn-sm btn-primary"><i class="fa fa-pencil"></i> 修改</a>
                            {gt name="vo['id']" value="13"}
                            <a href="{:Url('Leave/leave_config_del?id='.$vo['id'])}" class="confirm btn-sm btn-danger ajax-del"><i class="fa fa-trash-o"></i> 删除</a>
                            {/gt}
                        </td>
                    </tr>
                    {/volist}
                    </tbody>
                    <tfoot>
                    <tr>
                        <td colspan="10">
                            <div class="page">{$list->render()}</div>
                        </td>
                    </tr>
                    </tfoot>
                </table>
            </div>
        </div>
    </div>
</div>
{/block}

{block name="script"}
<script src="/admin/js/plugins/iCheck/icheck.min.js"></script>
<script>
    highlight_subnav("{:Url('Leave/leave_config')}");

    $(document).ready(function(){

    });
</script>
{/block}